package com.xunlai.infra.permission.manager.web.converter;

import com.xunlai.infra.permission.manager.web.vo.position.CreatePositionReqVo;
import com.xunlai.infra.permission.manager.web.vo.position.PositionListVo;
import com.xunlai.infra.permission.manager.web.vo.position.SearchPositionReqVo;
import com.xunlai.infra.permission.storage.entity.Position;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 12/21/22 9:25 AM
 */
@Mapper
public interface PositionConverter {

    PositionConverter INSTANCE = Mappers.getMapper(PositionConverter.class);

    Position convertCreateReqVo2Position(CreatePositionReqVo createPositionReqVo);

    Position convertSearchReqVo2Position(SearchPositionReqVo searchPositionReqVo);

    PositionListVo convert2ListVo(Position position);


}
